Write-Host -ForegroundColor Yellow "Office: Installing Microsoft Filter Pack 2.0"

$product = "Filter Pack"

$installed = Get-WmiObject -class "Win32_SoftwareFeature" | where { $_.ProductName -like "*$product*" }

if ($installed -eq $null){

	$buildPath = "C:\Builds\PreReq\"
	if (Test-Path $buildPath){
	} else{
	mkdir $buildPath
	}
	Copy-Item ".\Scripts\FilterPack\FilterPack.msi" $buildPath -Force
	Copy-Item ".\Scripts\FilterPack\FilterPk.cab" $buildPath -Force
	$FP = Join-Path $buildPath "FilterPack.msi"
	& $FP /passive /quiet /norestart
	sleep 15
	
Write-Host -ForegroundColor Yellow "Office: Installing  Microsoft Filter Pack 2.0. COMPLETED"
} else {
Write-Host -ForegroundColor Gray "Office: Installing  Microsoft Filter Pack 2.0. Already Installed Skipping."
}


